package com.eshop.modules.activity.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.activity.service.dto.StoreCombinationDto;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.activity.service.dto.StoreCombinationQueryCriteria;
import com.eshop.modules.activity.vo.StoreCombinationVo;
import com.eshop.modules.activity.vo.CombinationQueryVo;
import com.eshop.modules.activity.domain.StoreCombination;
import com.eshop.common.service.BaseService;

public interface StoreCombinationService extends BaseService<StoreCombination>
{
    CombinationQueryVo getList(final int page, final int limit);
    
    StoreCombinationVo getDetail(final Long id, final Long uid);
    
    Map<String, Object> queryAll(final StoreCombinationQueryCriteria criteria, final Pageable pageable);
    
    List<StoreCombination> queryAll(final StoreCombinationQueryCriteria criteria);
    
    void download(final List<StoreCombinationDto> all, final HttpServletResponse response) throws IOException;
    
    void onSale(final Long id, final Integer status);
    
    boolean saveCombination(final StoreCombinationDto resources);
}
